/**
 * 
 */
package mdb.com.vn.utils;

import java.text.DecimalFormat;
import java.text.NumberFormat;

/**
 * @author tu.dod
 *
 */
public class NumberUtils {
	
	public static final double VND20000 = 20000;
	public static final double VND50000 = 50000;
	public static final double VND100000 = 100000;
	public static final double VND200000 = 200000;
	public static final double VND500000 = 500000;
	
	public static final String NAME_VND20000 =  "Thẻ 20,000 VND";
	public static final String NAME_VND50000 =  "Thẻ 50,000 VND";
	public static final String NAME_VND100000 = "Thẻ 100,000 VND";
	public static final String NAME_VND200000 = "Thẻ 200,000 VND";
	public static final String NAME_VND500000 = "Thẻ 500,000 VND";
	public static final String NAME_VNDZERO= "Thẻ cảm ơn";
	
	public static String format(String input, String pattern){
		NumberFormat formatter = new DecimalFormat(pattern);
		return formatter.format(Double.parseDouble(input));
	}
	public static String format(double input, String pattern){
		NumberFormat formatter = new DecimalFormat(pattern);
		return formatter.format(input);
	}

}
